import { useState } from 'react'

function List(props) {
    // props 非自有， 传入
    const {data} = props
    console.log(data, '---||||-----------')
  return (
    <div>
        <div>
        {
            data.map((book) => <div key={book.id}>{book.title}</div>)
        }
        </div>
    </div>
  )
}

export default List
